﻿
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace EFGetStarted
{
    public class DMContext : DbContext
    {
        /*
        public DbSet<Blog> Blogs { get; set; }
        public DbSet<Post> Posts { get; set; }
        */
        public DbSet<BW_CheckVerificat> bW_CheckVerificats { get; set; }

        public DbSet<BW_WorkFlowManage> flowManages { get; set; }

        public DbSet<BW_MeterInfo> meterInfos { get; set; }


        
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder
                 .UseDm("Server=32.168.82.8:5236;UserId=XT_ZHSW_BIAOWU;PWD=Xtkj300259;");
               // .UseDm("Server=192.168.25.129;UserId=XT_ZHSW_BIAOWU;PWD=Zzj123456;");
            //   optionsBuilder.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=AspNetCorePrj.EFGetStarted;Trusted_Connection=True;");
            //  optionsBuilder.UseSqlServer(@"Server=.;Database=AspNetCorePrj.EFGetStarted;TrustServerCertificate=true ;Trusted_Connection=True;MultipleActiveResultSets=true;");
            optionsBuilder.LogTo(Console.WriteLine, LogLevel.Information); // 将日志输出到控制台，并设置日志级别为Information

            
        }
    }
    public class Blog
    {
        public int BlogId { get; set; }
        public string Url { get; set; }
        public List<Post> Posts { get; set; }
    }
    public class Post
    {
        public int PostId { get; set; }
        public string Title { get; set; }
        public string Content { get; set; }
        public int BlogId { get; set; }
        public Blog Blog { get; set; }
    }

    [Table("BW_CHECKVERIFICAT")]
    public class BW_CheckVerificat 
    {
        // Token: 0x1700006A RID: 106
        // (get) Token: 0x060000E8 RID: 232 RVA: 0x00002A0C File Offset: 0x00000C0C
        // (set) Token: 0x060000E9 RID: 233 RVA: 0x00002A14 File Offset: 0x00000C14
        [Key]
        [Column("ID")]
        public string id { get; set; }

        // Token: 0x1700006B RID: 107
        // (get) Token: 0x060000EA RID: 234 RVA: 0x00002A1D File Offset: 0x00000C1D
        // (set) Token: 0x060000EB RID: 235 RVA: 0x00002A25 File Offset: 0x00000C25
        [Column("SENDCODE")]
        public string sendcode { get; set; }

        // Token: 0x1700006C RID: 108
        // (get) Token: 0x060000EC RID: 236 RVA: 0x00002A2E File Offset: 0x00000C2E
        // (set) Token: 0x060000ED RID: 237 RVA: 0x00002A36 File Offset: 0x00000C36
        [Column("RECEIVECODE")]
        public string receivecode { get; set; }

        // Token: 0x1700006D RID: 109
        // (get) Token: 0x060000EE RID: 238 RVA: 0x00002A3F File Offset: 0x00000C3F
        // (set) Token: 0x060000EF RID: 239 RVA: 0x00002A47 File Offset: 0x00000C47
        [Column("PROJECTCODE")]
        public string projectcode { get; set; }

        // Token: 0x1700006E RID: 110
        // (get) Token: 0x060000F0 RID: 240 RVA: 0x00002A50 File Offset: 0x00000C50
        // (set) Token: 0x060000F1 RID: 241 RVA: 0x00002A58 File Offset: 0x00000C58
        [Column("PROJECTNAME")]
        public string projectname { get; set; }

        // Token: 0x1700006F RID: 111
        // (get) Token: 0x060000F2 RID: 242 RVA: 0x00002A61 File Offset: 0x00000C61
        // (set) Token: 0x060000F3 RID: 243 RVA: 0x00002A69 File Offset: 0x00000C69
        [Column("CHECKSTATUS")]
        public int checkstatus { get; set; }

        // Token: 0x17000070 RID: 112
        // (get) Token: 0x060000F4 RID: 244 RVA: 0x00002A72 File Offset: 0x00000C72
        // (set) Token: 0x060000F5 RID: 245 RVA: 0x00002A7A File Offset: 0x00000C7A
        [Column("CHECKRESULT")]
        public int checkresult { get; set; }

        // Token: 0x17000071 RID: 113
        // (get) Token: 0x060000F6 RID: 246 RVA: 0x00002A83 File Offset: 0x00000C83
        // (set) Token: 0x060000F7 RID: 247 RVA: 0x00002A8B File Offset: 0x00000C8B
        [Column("BRANDCODE")]
        public string brandcode { get; set; }

        // Token: 0x17000072 RID: 114
        // (get) Token: 0x060000F8 RID: 248 RVA: 0x00002A94 File Offset: 0x00000C94
        // (set) Token: 0x060000F9 RID: 249 RVA: 0x00002A9C File Offset: 0x00000C9C
        [Column("BRANDNAME")]
        public string brandname { get; set; }

        // Token: 0x17000073 RID: 115
        // (get) Token: 0x060000FA RID: 250 RVA: 0x00002AA5 File Offset: 0x00000CA5
        // (set) Token: 0x060000FB RID: 251 RVA: 0x00002AAD File Offset: 0x00000CAD
        [Column("MODELCODE")]
        public string modelcode { get; set; }

        // Token: 0x17000074 RID: 116
        // (get) Token: 0x060000FC RID: 252 RVA: 0x00002AB6 File Offset: 0x00000CB6
        // (set) Token: 0x060000FD RID: 253 RVA: 0x00002ABE File Offset: 0x00000CBE
        [Column("MODELNAME")]
        public string modelname { get; set; }

        // Token: 0x17000075 RID: 117
        // (get) Token: 0x060000FE RID: 254 RVA: 0x00002AC7 File Offset: 0x00000CC7
        // (set) Token: 0x060000FF RID: 255 RVA: 0x00002ACF File Offset: 0x00000CCF
        [Column("CALIBERCODE")]
        public string calibercode { get; set; }

        // Token: 0x17000076 RID: 118
        // (get) Token: 0x06000100 RID: 256 RVA: 0x00002AD8 File Offset: 0x00000CD8
        // (set) Token: 0x06000101 RID: 257 RVA: 0x00002AE0 File Offset: 0x00000CE0
        [Column("CALIBERNAME")]
        public string calibername { get; set; }

        // Token: 0x17000077 RID: 119
        // (get) Token: 0x06000102 RID: 258 RVA: 0x00002AE9 File Offset: 0x00000CE9
        // (set) Token: 0x06000103 RID: 259 RVA: 0x00002AF1 File Offset: 0x00000CF1
        [Column("SENDDEPT")]
        public string senddept { get; set; }

        // Token: 0x17000078 RID: 120
        // (get) Token: 0x06000104 RID: 260 RVA: 0x00002AFA File Offset: 0x00000CFA
        // (set) Token: 0x06000105 RID: 261 RVA: 0x00002B02 File Offset: 0x00000D02
        [Column("CHECKTYPE")]
        public string checktype { get; set; }

        // Token: 0x17000079 RID: 121
        // (get) Token: 0x06000106 RID: 262 RVA: 0x00002B0B File Offset: 0x00000D0B
        // (set) Token: 0x06000107 RID: 263 RVA: 0x00002B13 File Offset: 0x00000D13
        [Column("MEASURE")]
        public string measure { get; set; }

        // Token: 0x1700007A RID: 122
        // (get) Token: 0x06000108 RID: 264 RVA: 0x00002B1C File Offset: 0x00000D1C
        // (set) Token: 0x06000109 RID: 265 RVA: 0x00002B24 File Offset: 0x00000D24
        [Column("FLOATINGSTATUS")]
        public int floatingstatus { get; set; }

        // Token: 0x1700007B RID: 123
        // (get) Token: 0x0600010A RID: 266 RVA: 0x00002B2D File Offset: 0x00000D2D
        // (set) Token: 0x0600010B RID: 267 RVA: 0x00002B35 File Offset: 0x00000D35
        [Column("RECEIVESTATUS")]
        public int receivestatus { get; set; }

        // Token: 0x1700007C RID: 124
        // (get) Token: 0x0600010C RID: 268 RVA: 0x00002B3E File Offset: 0x00000D3E
        // (set) Token: 0x0600010D RID: 269 RVA: 0x00002B46 File Offset: 0x00000D46
        [Column("OUTTYPE")]
        public int outtype { get; set; } = 3;

        // Token: 0x1700007D RID: 125
        // (get) Token: 0x0600010E RID: 270 RVA: 0x00002B4F File Offset: 0x00000D4F
        // (set) Token: 0x0600010F RID: 271 RVA: 0x00002B57 File Offset: 0x00000D57
        [Column("REFUSEREMARK")]
        public string refuseremark { get; set; }

        // Token: 0x1700007E RID: 126
        // (get) Token: 0x06000110 RID: 272 RVA: 0x00002B60 File Offset: 0x00000D60
        // (set) Token: 0x06000111 RID: 273 RVA: 0x00002B68 File Offset: 0x00000D68
        [Column("SENDWHOUSECODE")]
        public string sendwhousecode { get; set; }

        // Token: 0x1700007F RID: 127
        // (get) Token: 0x06000112 RID: 274 RVA: 0x00002B71 File Offset: 0x00000D71
        // (set) Token: 0x06000113 RID: 275 RVA: 0x00002B79 File Offset: 0x00000D79
        [Column("SENDWHOUSENAME")]
        public string sendwhousename { get; set; }

        // Token: 0x17000080 RID: 128
        // (get) Token: 0x06000114 RID: 276 RVA: 0x00002B82 File Offset: 0x00000D82
        // (set) Token: 0x06000115 RID: 277 RVA: 0x00002B8A File Offset: 0x00000D8A
        [Column("WHOUSECODE")]
        public string whousecode { get; set; }

        // Token: 0x17000081 RID: 129
        // (get) Token: 0x06000116 RID: 278 RVA: 0x00002B93 File Offset: 0x00000D93
        // (set) Token: 0x06000117 RID: 279 RVA: 0x00002B9B File Offset: 0x00000D9B
        [Column("WHOUSENAME")]
        public string whousename { get; set; }

        // Token: 0x17000082 RID: 130
        // (get) Token: 0x06000118 RID: 280 RVA: 0x00002BA4 File Offset: 0x00000DA4
        // (set) Token: 0x06000119 RID: 281 RVA: 0x00002BAC File Offset: 0x00000DAC
        [Column("OPERATEUSERID")]
        public string operateuserid { get; set; }

        // Token: 0x17000083 RID: 131
        // (get) Token: 0x0600011A RID: 282 RVA: 0x00002BB5 File Offset: 0x00000DB5
        // (set) Token: 0x0600011B RID: 283 RVA: 0x00002BBD File Offset: 0x00000DBD
        [Column("OPERATEUSERNAME")]
        public string operateusername { get; set; }

        // Token: 0x17000084 RID: 132
        // (get) Token: 0x0600011C RID: 284 RVA: 0x00002BC6 File Offset: 0x00000DC6
        // (set) Token: 0x0600011D RID: 285 RVA: 0x00002BCE File Offset: 0x00000DCE
        [Column("REMARK")]
        public string remark { get; set; }

        // Token: 0x17000085 RID: 133
        // (get) Token: 0x0600011E RID: 286 RVA: 0x00002BD7 File Offset: 0x00000DD7
        // (set) Token: 0x0600011F RID: 287 RVA: 0x00002BDF File Offset: 0x00000DDF
        [Column("CHECKTIME")]
        public DateTime? checktime { get; set; }

        // Token: 0x17000086 RID: 134
        // (get) Token: 0x06000120 RID: 288 RVA: 0x00002BE8 File Offset: 0x00000DE8
        // (set) Token: 0x06000121 RID: 289 RVA: 0x00002BF0 File Offset: 0x00000DF0
        [Column("ADDTIME")]
        public DateTime addtime { get; set; } = DateTime.Now;

        // Token: 0x06000122 RID: 290 RVA: 0x00002BFC File Offset: 0x00000DFC
        public void Create()
        {
            this.id = Guid.NewGuid().ToString();
        }

        // Token: 0x06000123 RID: 291 RVA: 0x00002C22 File Offset: 0x00000E22
        public void Modify(string keyValue)
        {
            this.id = keyValue;
        }
    }
    [Table("BW_METERINFO")]
    public class BW_MeterInfo  
    {
        // Token: 0x170002E3 RID: 739
        // (get) Token: 0x060006F8 RID: 1784 RVA: 0x0000A12A File Offset: 0x0000832A
        // (set) Token: 0x060006F9 RID: 1785 RVA: 0x0000A132 File Offset: 0x00008332
        [Key]
        [Column("ID")]
        public string id { get; set; }

        // Token: 0x170002E4 RID: 740
        // (get) Token: 0x060006FA RID: 1786 RVA: 0x0000A13B File Offset: 0x0000833B
        // (set) Token: 0x060006FB RID: 1787 RVA: 0x0000A143 File Offset: 0x00008343
        [Column("METERCODE")]
        public string metercode { get; set; }

        // Token: 0x170002E5 RID: 741
        // (get) Token: 0x060006FC RID: 1788 RVA: 0x0000A14C File Offset: 0x0000834C
        // (set) Token: 0x060006FD RID: 1789 RVA: 0x0000A154 File Offset: 0x00008354
        [Column("STAMPCODE")]
        public string stampcode { get; set; }

        // Token: 0x170002E6 RID: 742
        // (get) Token: 0x060006FE RID: 1790 RVA: 0x0000A15D File Offset: 0x0000835D
        // (set) Token: 0x060006FF RID: 1791 RVA: 0x0000A165 File Offset: 0x00008365
        [Column("SEALCODE")]
        public string sealcode { get; set; }

        // Token: 0x170002E7 RID: 743
        // (get) Token: 0x06000700 RID: 1792 RVA: 0x0000A16E File Offset: 0x0000836E
        // (set) Token: 0x06000701 RID: 1793 RVA: 0x0000A176 File Offset: 0x00008376
        [Column("SEALCODE2")]
        public string sealcode2 { get; set; }

        // Token: 0x170002E8 RID: 744
        // (get) Token: 0x06000702 RID: 1794 RVA: 0x0000A17F File Offset: 0x0000837F
        // (set) Token: 0x06000703 RID: 1795 RVA: 0x0000A187 File Offset: 0x00008387
        [Column("BODYCODE")]
        public string bodycode { get; set; }

        // Token: 0x170002E9 RID: 745
        // (get) Token: 0x06000704 RID: 1796 RVA: 0x0000A190 File Offset: 0x00008390
        // (set) Token: 0x06000705 RID: 1797 RVA: 0x0000A198 File Offset: 0x00008398
        [Column("FACTORYCODE")]
        public string factorycode { get; set; }

        // Token: 0x170002EA RID: 746
        // (get) Token: 0x06000706 RID: 1798 RVA: 0x0000A1A1 File Offset: 0x000083A1
        // (set) Token: 0x06000707 RID: 1799 RVA: 0x0000A1A9 File Offset: 0x000083A9
        [Column("YCCODE")]
        public string yccode { get; set; }

        // Token: 0x170002EB RID: 747
        // (get) Token: 0x06000708 RID: 1800 RVA: 0x0000A1B2 File Offset: 0x000083B2
        // (set) Token: 0x06000709 RID: 1801 RVA: 0x0000A1BA File Offset: 0x000083BA
        [Column("IMEI")]
        public string imei { get; set; }

        // Token: 0x170002EC RID: 748
        // (get) Token: 0x0600070A RID: 1802 RVA: 0x0000A1C3 File Offset: 0x000083C3
        // (set) Token: 0x0600070B RID: 1803 RVA: 0x0000A1CB File Offset: 0x000083CB
        [Column("WHOUSECODE")]
        public string whousecode { get; set; }

        // Token: 0x170002ED RID: 749
        // (get) Token: 0x0600070C RID: 1804 RVA: 0x0000A1D4 File Offset: 0x000083D4
        // (set) Token: 0x0600070D RID: 1805 RVA: 0x0000A1DC File Offset: 0x000083DC
        [Column("WHOUSENAME")]
        public string whousename { get; set; }

        // Token: 0x170002EE RID: 750
        // (get) Token: 0x0600070E RID: 1806 RVA: 0x0000A1E5 File Offset: 0x000083E5
        // (set) Token: 0x0600070F RID: 1807 RVA: 0x0000A1ED File Offset: 0x000083ED
        [Column("BRANDCODE")]
        public string brandcode { get; set; }

        // Token: 0x170002EF RID: 751
        // (get) Token: 0x06000710 RID: 1808 RVA: 0x0000A1F6 File Offset: 0x000083F6
        // (set) Token: 0x06000711 RID: 1809 RVA: 0x0000A1FE File Offset: 0x000083FE
        [Column("BRANDNAME")]
        public string brandname { get; set; }

        // Token: 0x170002F0 RID: 752
        // (get) Token: 0x06000712 RID: 1810 RVA: 0x0000A207 File Offset: 0x00008407
        // (set) Token: 0x06000713 RID: 1811 RVA: 0x0000A20F File Offset: 0x0000840F
        [Column("CALIBERCODE")]
        public string calibercode { get; set; }

        // Token: 0x170002F1 RID: 753
        // (get) Token: 0x06000714 RID: 1812 RVA: 0x0000A218 File Offset: 0x00008418
        // (set) Token: 0x06000715 RID: 1813 RVA: 0x0000A220 File Offset: 0x00008420
        [Column("CALIBERNAME")]
        public string calibername { get; set; }

        // Token: 0x170002F2 RID: 754
        // (get) Token: 0x06000716 RID: 1814 RVA: 0x0000A229 File Offset: 0x00008429
        // (set) Token: 0x06000717 RID: 1815 RVA: 0x0000A231 File Offset: 0x00008431
        [Column("MODELCODE")]
        public string modelcode { get; set; }

        // Token: 0x170002F3 RID: 755
        // (get) Token: 0x06000718 RID: 1816 RVA: 0x0000A23A File Offset: 0x0000843A
        // (set) Token: 0x06000719 RID: 1817 RVA: 0x0000A242 File Offset: 0x00008442
        [Column("MODELNAME")]
        public string modelname { get; set; }

        // Token: 0x170002F4 RID: 756
        // (get) Token: 0x0600071A RID: 1818 RVA: 0x0000A24B File Offset: 0x0000844B
        // (set) Token: 0x0600071B RID: 1819 RVA: 0x0000A253 File Offset: 0x00008453
        [Column("MODELCODE2")]
        public string modelcode2 { get; set; }

        // Token: 0x170002F5 RID: 757
        // (get) Token: 0x0600071C RID: 1820 RVA: 0x0000A25C File Offset: 0x0000845C
        // (set) Token: 0x0600071D RID: 1821 RVA: 0x0000A264 File Offset: 0x00008464
        [Column("MODELNAME2")]
        public string modelname2 { get; set; }

        // Token: 0x170002F6 RID: 758
        // (get) Token: 0x0600071E RID: 1822 RVA: 0x0000A26D File Offset: 0x0000846D
        // (set) Token: 0x0600071F RID: 1823 RVA: 0x0000A275 File Offset: 0x00008475
        [Column("TYPECODE")]
        public string typecode { get; set; }

        // Token: 0x170002F7 RID: 759
        // (get) Token: 0x06000720 RID: 1824 RVA: 0x0000A27E File Offset: 0x0000847E
        // (set) Token: 0x06000721 RID: 1825 RVA: 0x0000A286 File Offset: 0x00008486
        [Column("TYPENAME")]
        public string typename { get; set; }

        // Token: 0x170002F8 RID: 760
        // (get) Token: 0x06000722 RID: 1826 RVA: 0x0000A28F File Offset: 0x0000848F
        // (set) Token: 0x06000723 RID: 1827 RVA: 0x0000A297 File Offset: 0x00008497
        [Column("RANGECODE")]
        public string rangecode { get; set; }

        // Token: 0x170002F9 RID: 761
        // (get) Token: 0x06000724 RID: 1828 RVA: 0x0000A2A0 File Offset: 0x000084A0
        // (set) Token: 0x06000725 RID: 1829 RVA: 0x0000A2A8 File Offset: 0x000084A8
        [Column("RANGENAME")]
        public string rangename { get; set; }

        // Token: 0x170002FA RID: 762
        // (get) Token: 0x06000726 RID: 1830 RVA: 0x0000A2B1 File Offset: 0x000084B1
        // (set) Token: 0x06000727 RID: 1831 RVA: 0x0000A2B9 File Offset: 0x000084B9
        [Column("USESTATUS")]
        public int usestatus { get; set; }

        // Token: 0x170002FB RID: 763
        // (get) Token: 0x06000728 RID: 1832 RVA: 0x0000A2C2 File Offset: 0x000084C2
        // (set) Token: 0x06000729 RID: 1833 RVA: 0x0000A2CA File Offset: 0x000084CA
        [Column("STOCKSTATUS")]
        public int stockstatus { get; set; } = 1;

        // Token: 0x170002FC RID: 764
        // (get) Token: 0x0600072A RID: 1834 RVA: 0x0000A2D3 File Offset: 0x000084D3
        // (set) Token: 0x0600072B RID: 1835 RVA: 0x0000A2DB File Offset: 0x000084DB
        [Column("COMCATION")]
        public string comcation { get; set; }

        // Token: 0x170002FD RID: 765
        // (get) Token: 0x0600072C RID: 1836 RVA: 0x0000A2E4 File Offset: 0x000084E4
        // (set) Token: 0x0600072D RID: 1837 RVA: 0x0000A2EC File Offset: 0x000084EC
        [Column("SIM")]
        public string sim { get; set; }

        // Token: 0x170002FE RID: 766
        // (get) Token: 0x0600072E RID: 1838 RVA: 0x0000A2F5 File Offset: 0x000084F5
        // (set) Token: 0x0600072F RID: 1839 RVA: 0x0000A2FD File Offset: 0x000084FD
        [Column("PHONETYPE")]
        public string phonetype { get; set; }

        // Token: 0x170002FF RID: 767
        // (get) Token: 0x06000730 RID: 1840 RVA: 0x0000A306 File Offset: 0x00008506
        // (set) Token: 0x06000731 RID: 1841 RVA: 0x0000A30E File Offset: 0x0000850E
        [Column("MEASURE")]
        public string measure { get; set; }

        // Token: 0x17000300 RID: 768
        // (get) Token: 0x06000732 RID: 1842 RVA: 0x0000A317 File Offset: 0x00008517
        // (set) Token: 0x06000733 RID: 1843 RVA: 0x0000A31F File Offset: 0x0000851F
        [Column("REPAIRSTATUS")]
        public int repairstatus { get; set; }

        // Token: 0x17000301 RID: 769
        // (get) Token: 0x06000734 RID: 1844 RVA: 0x0000A328 File Offset: 0x00008528
        // (set) Token: 0x06000735 RID: 1845 RVA: 0x0000A330 File Offset: 0x00008530
        [Column("ORIGIN")]
        public string origin { get; set; }

        // Token: 0x17000302 RID: 770
        // (get) Token: 0x06000736 RID: 1846 RVA: 0x0000A339 File Offset: 0x00008539
        // (set) Token: 0x06000737 RID: 1847 RVA: 0x0000A341 File Offset: 0x00008541
        [Column("INTIME")]
        public DateTime? intime { get; set; }

        // Token: 0x17000303 RID: 771
        // (get) Token: 0x06000738 RID: 1848 RVA: 0x0000A34A File Offset: 0x0000854A
        // (set) Token: 0x06000739 RID: 1849 RVA: 0x0000A352 File Offset: 0x00008552
        [Column("OUTTIME")]
        public DateTime? outtime { get; set; }

        // Token: 0x17000304 RID: 772
        // (get) Token: 0x0600073A RID: 1850 RVA: 0x0000A35B File Offset: 0x0000855B
        // (set) Token: 0x0600073B RID: 1851 RVA: 0x0000A363 File Offset: 0x00008563
        [Column("MODIFYTIME")]
        public DateTime modifytime { get; set; } = DateTime.Now;

        // Token: 0x17000305 RID: 773
        // (get) Token: 0x0600073C RID: 1852 RVA: 0x0000A36C File Offset: 0x0000856C
        // (set) Token: 0x0600073D RID: 1853 RVA: 0x0000A374 File Offset: 0x00008574
        [Column("ADDTIME")]
        public DateTime addtime { get; set; } = DateTime.Now;

        // Token: 0x17000306 RID: 774
        // (get) Token: 0x0600073E RID: 1854 RVA: 0x0000A37D File Offset: 0x0000857D
        // (set) Token: 0x0600073F RID: 1855 RVA: 0x0000A385 File Offset: 0x00008585
        [Column("BZPROJECTCODE")]
        public string bzprojectcode { get; set; }

        // Token: 0x17000307 RID: 775
        // (get) Token: 0x06000740 RID: 1856 RVA: 0x0000A38E File Offset: 0x0000858E
        // (set) Token: 0x06000741 RID: 1857 RVA: 0x0000A396 File Offset: 0x00008596
        [Column("BZPROJECTNAME")]
        public string bzprojectname { get; set; }

        // Token: 0x17000308 RID: 776
        // (get) Token: 0x06000742 RID: 1858 RVA: 0x0000A39F File Offset: 0x0000859F
        // (set) Token: 0x06000743 RID: 1859 RVA: 0x0000A3A7 File Offset: 0x000085A7
        [Column("CHECKTIME")]
        public DateTime? checktime { get; set; }

        // Token: 0x17000309 RID: 777
        // (get) Token: 0x06000744 RID: 1860 RVA: 0x0000A3B0 File Offset: 0x000085B0
        // (set) Token: 0x06000745 RID: 1861 RVA: 0x0000A3B8 File Offset: 0x000085B8
        [Column("CHECKSTATUS")]
        public int? checkstatus { get; set; }

        // Token: 0x1700030A RID: 778
        // (get) Token: 0x06000746 RID: 1862 RVA: 0x0000A3C1 File Offset: 0x000085C1
        // (set) Token: 0x06000747 RID: 1863 RVA: 0x0000A3C9 File Offset: 0x000085C9
        [Column("CHECKMAN")]
        public string checkman { get; set; }

        // Token: 0x1700030B RID: 779
        // (get) Token: 0x06000748 RID: 1864 RVA: 0x0000A3D2 File Offset: 0x000085D2
        // (set) Token: 0x06000749 RID: 1865 RVA: 0x0000A3DA File Offset: 0x000085DA
        [Column("CHECKVERMAN")]
        public string checkverman { get; set; }

        // Token: 0x1700030C RID: 780
        // (get) Token: 0x0600074A RID: 1866 RVA: 0x0000A3E3 File Offset: 0x000085E3
        // (set) Token: 0x0600074B RID: 1867 RVA: 0x0000A3EB File Offset: 0x000085EB
        [Column("FIRSTCHECKTIME")]
        public DateTime? firstchecktime { get; set; }
    }
    [Table("BW_WORKFLOWMANAGE")]
    public class BW_WorkFlowManage 
    {
        // Token: 0x1700003C RID: 60
        // (get) Token: 0x06000082 RID: 130 RVA: 0x000024F0 File Offset: 0x000006F0
        // (set) Token: 0x06000083 RID: 131 RVA: 0x000024F8 File Offset: 0x000006F8
        [Key]
        [Column("ID")]
        public string id { get; set; }

        // Token: 0x1700003D RID: 61
        // (get) Token: 0x06000084 RID: 132 RVA: 0x00002501 File Offset: 0x00000701
        // (set) Token: 0x06000085 RID: 133 RVA: 0x00002509 File Offset: 0x00000709
        [Column("CODE")]
        public string code { get; set; }

        // Token: 0x1700003E RID: 62
        // (get) Token: 0x06000086 RID: 134 RVA: 0x00002512 File Offset: 0x00000712
        // (set) Token: 0x06000087 RID: 135 RVA: 0x0000251A File Offset: 0x0000071A
        [Column("NAME")]
        public string name { get; set; }

        // Token: 0x1700003F RID: 63
        // (get) Token: 0x06000088 RID: 136 RVA: 0x00002523 File Offset: 0x00000723
        // (set) Token: 0x06000089 RID: 137 RVA: 0x0000252B File Offset: 0x0000072B
        [Column("WORKFLOWCODE")]
        public string workflowcode { get; set; }

        // Token: 0x17000040 RID: 64
        // (get) Token: 0x0600008A RID: 138 RVA: 0x00002534 File Offset: 0x00000734
        // (set) Token: 0x0600008B RID: 139 RVA: 0x0000253C File Offset: 0x0000073C
        [Column("WORKFLOWNAME")]
        public string workflowname { get; set; }

        // Token: 0x17000041 RID: 65
        // (get) Token: 0x0600008C RID: 140 RVA: 0x00002545 File Offset: 0x00000745
        // (set) Token: 0x0600008D RID: 141 RVA: 0x0000254D File Offset: 0x0000074D
        [Column("REMARK")]
        [Required(AllowEmptyStrings = true)]  // 允许空字符串      
        public string? remark { get; set; }

        // Token: 0x17000042 RID: 66
        // (get) Token: 0x0600008E RID: 142 RVA: 0x00002556 File Offset: 0x00000756
        // (set) Token: 0x0600008F RID: 143 RVA: 0x0000255E File Offset: 0x0000075E
        [Column("ISENABLE")]
        public int isenable { get; set; }

        // Token: 0x06000090 RID: 144 RVA: 0x00006640 File Offset: 0x00004840
        public void Create()
        {
            this.id = Guid.NewGuid().ToString();
        }

        // Token: 0x06000091 RID: 145 RVA: 0x00002567 File Offset: 0x00000767
        public void Modify(string keyValue)
        {
            this.id = keyValue;
        }
    }
}
